package com.petRescueCenter.demo.common.enumPackage;

/**
 * 性别枚举 MALE("男"), FEMALE("女");
 */
public enum SexEmun {
	MALE(0, "男"), FEMALE(1, "女");
	private int status;
	/**
	 * 私有构造函数
	 */
	private String text;

	SexEmun(int status, String text) {
		this.status = status;
		this.text = text;
	}

	public static SexEmun get(int v) {
		String str = String.valueOf(v);
		return get(str);
	}

	public static SexEmun get(String str) {
		for (SexEmun e : values()) {
			if (e.toString().equals(str)) {
				return e;
			}
		}
		return null;
	}

	public int getStatus() {
		return status;
	}

	public String getText() {
		return text;
	}

}
